import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      meta: {login: false, cName: '首页'},
    },
    {
      path: '/wx-login',
      name: 'WxLogin',
      component: () => import('@/views/WxLoginView.vue')
    },
    {
      path: '/login-tip',
      name: 'LoginTip',
      component: () => import('@/views/LoginTipView.vue'),
      meta: {login: false, cName: '引导页'},
    }
  ]
})

export default router
